<?php
/*
Plugin Name: Custom Youtubi
Plugin URI: http://wanwp.com/plugins/custom-youtubi/
Description:
Author: 冰古
Version: 0.1 A
Author URI: http://bingu.net
License: GNU General Public License 2.0 http://www.gnu.org/licenses/gpl.html
*/

define('CUSTOM_YOUTUBI_VERSION', '0.1');
define('CUSTOM_YOUTUBI_BASEFOLDER', plugin_basename(dirname(__FILE__)));

$youtubi_config = array(
    'flashWidth' => '640',
    'flashHeight' => '385',
    'showImage' => 'default', // value: 'default' and 'hqdefault'
                              // default size: 120 * 90
                              //hqdefault size: 480 * 360
);

function custom_youtubi() {
    if (is_admin()) {
        return;
    } else {
        require_once(WP_PLUGIN_DIR . '/' . CUSTOM_YOUTUBI_BASEFOLDER . '/get-youtubi.php');
    }
}

add_action('init', 'custom_youtubi');

/* EOF custom-youtubi.php */
/* ./wp-content/plugins/custom-youtubi/custom-youtubi.php */